package com.ocom.common.request.payhandle;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ZkzlPayRequest {
    @Min(1L)
    @NotNull(message = "companyId 不能为空")
    Long companyId;
    @NotBlank(message = "userId 不能为空")
    Long userId;
    @NotBlank(message = "machineId 不能为空")
    Integer machineId;
    @NotNull(message = "posAddress 不能为空")
    String posAddress;
    @NotNull(message = "tradeTime 不能为空")
    String tradeTime;


    @NotBlank(message = "tradeNo 不能为空")
    String tradeNo;
    @Min(1)
    @NotNull(message = "amount 不能为空")
    Integer amount;
    @Min(201)
    Integer consType;
    @NotNull(message = "describe 不能为空")
    String describe;

    @Override
    public String toString() {
        return "ZkzlPayRequest{" +
                "companyId=" + companyId +
                ", userId=" + userId +
                ", machineId=" + machineId +
                ", posAddress='" + posAddress + '\'' +
                ", tradeTime='" + tradeTime + '\'' +
                ", tradeNo='" + tradeNo + '\'' +
                ", amount=" + amount +
                ", consType=" + consType +
                ", describe='" + describe + '\'' +
                '}';
    }
}
